#ifndef _MY_STRING_H_
#define _MY_STRING_H_

#include<iostream>

class mystring
{
public:
	//constructor
	mystring();
	mystring(const char *str);
	mystring(const mystring &str);
	~mystring();
	mystring operator+(const mystring &str);
	mystring & operator=(const mystring &str);

	friend std::ostream & operator<<(std::ostream &cout, const mystring &str);

private:
	char *p_str;
	int str_size;
};

#endif
